package form;

import play.api.libs.Crypto;

/**
 * Created with IntelliJ IDEA.
 * User: Tom
 * Date: 7-2-14
 * Time: 21:04
 */
public class Login {

    private String email;
    private String password;
    private boolean remember;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        if (email != null && !email.equals(""))
            this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        if (password != null && !password.equals(""))
            this.password = Crypto.encryptAES(password);
    }

    public boolean isRemember() {
        return remember;
    }

    public void setRemember(boolean remember) {
        this.remember = remember;
    }
}
